(function(){var g=void 0,h=true,j=null,m=false,n,o=this; function aa(a){var b=typeof a;if(b=="object")if(a){if(a instanceof Array)return"array";else if(a instanceof Object)return b;var c=Object.prototype.toString.call(a);if(c=="[object Window]")return"object";if(c=="[object Array]"||typeof a.length=="number"&&typeof a.splice!="undefined"&&typeof a.propertyIsEnumerable!="undefined"&&!a.propertyIsEnumerable("splice"))return"array";if(c=="[object Function]"||typeof a.call!="undefined"&&typeof a.propertyIsEnumerable!="undefined"&&!a.propertyIsEnumerable("call"))return"function"}else return"null"; else if(b=="function"&&typeof a.call=="undefined")return"object";return b}function ba(a,b){function c(){}c.prototype=b.prototype;a.M=b.prototype;a.prototype=new c;a.prototype.constructor=a};function ca(){} function da(a,b,c){switch(typeof b){case "string":ea(b,c);break;case "number":c.push(isFinite(b)&&!isNaN(b)?b:"null");break;case "boolean":c.push(b);break;case "undefined":c.push("null");break;case "object":if(b==j){c.push("null");break}if(aa(b)=="array"){var d=b.length;c.push("[");for(var e="",f=0;f>>=0;for(var b="",d;a>0;)d=a%64,b="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_-".charAt(d)+b,a>>>=6;a=b}c+=a});return c} function ja(a){a+=String.fromCharCode(128);for(var b=[1518500249,1859775393,2400959708,3395469782],c=1732584193,d=4023233417,e=2562383102,f=271733878,i=3285377520,k=[],l,t,w,D,E,T=Math.ceil((a.length/4+2)/16),P=[T],y=0,v;y>>31;a=c;l=d;t=e;w=f;D=i;for(v=0;v<80;v++)E=Math.floor(v/20),E=(a<<5|a>>>27)+(E==0?l&t^~l&w:E==1?l^t^w:E==2?l&t^l&w^t&w:l^t^w)+D+b[E]+k[v]&4294967295,D=w,w=t,t=l<<30|l>>>2,l=a,a=E;c=c+a&4294967295;d=d+l&4294967295;e=e+t&4294967295;f=f+w&4294967295;i=i+D&4294967295}return[c,d,e,f,i]} function ka(a){var b=o.navigator,c=o.window.screen,d=[b.userAgent,b.platform,(new Date).getTimezoneOffset(),c.width+c.height+c.colorDepth];q(b.plugins,function(a){d.push(a.name+a.description+a.filename+a[0].type)});b=o.performance;d=d.concat([b&&b.now?b.now():"",document.title,o.location.href,r(),ia()]);return d.concat(a||[]).join()}function s(a,b,c){var d=Array.prototype.slice,e=d.call(arguments,2);return function(){return a.apply(b,e.concat(d.call(arguments)))}} function u(a){return typeof a!=="undefined"}function x(a){return a&&a.replace(/^www\./,"")}var la=/^((https?\:)?(\/\/))/i;function ma(a){return a&&a.replace(la,"")}var na=/^((https?\:)?(\/\/))?[^\/]*/;function oa(a){return a.replace(na,"")}var pa=/\#.*/;function qa(a){return a.replace(pa,"")}var ra=/\?[^\#]*/;function sa(a){return a.toLowerCase()}var ta=/\/+((\?|\#).*)?$/;function ua(a){return a.replace(ta,"$1")}function va(a){return a&&a.replace(ra,"")} function wa(a){var b=a.match(/\?(.*)$/ig)?a.match(/\?(.*)$/ig)[0].slice(1).replace(/#(.*)?/ig,"").split("&"):[],c=a.match(/#(.*)$/ig)?a.match(/#(.*)$/ig)[0]:"",a=a.match(/[#|\?](.*)?/ig)?a.slice(0,a.search(/[#|\?](.*)?/ig)):a,b=xa(b,function(a){return a.search("utm")!==0});b.length>0&&(a+="?"+b.join("&"));return a+c}function ya(a,b){if(a===b)return 0;var c=j;q([sa,ua,ma,oa,qa,va],function(d,e){a=d(a);b=d(b);if(a===b)return c=e+1,m});return c} function z(a,b,c,d){a.addEventListener?a.addEventListener(b,c,!!d):a.attachEvent&&a.attachEvent("on"+b,c)}function za(a,b){var c=o;c.removeEventListener?c.removeEventListener(a,b,m):c.detachEvent&&c.detachEvent("on"+a,b)}function Aa(a){return typeof a==="number"}function A(a){return typeof a==="string"}function Ba(a){a=new Date(+a);return Date.UTC(a.getFullYear(),a.getMonth(),a.getDate())}function r(){return(new Date).getTime()}function Ca(){return o.location.protocol==="http:"?"http:":"https:"} function Da(a){return!!a&&a.constructor===Object}function q(a,b){if(Da(a)===h)for(var c in a){if(a.hasOwnProperty(c)&&b(a[c],c)===m)break}else{c=0;for(var d=a.length;c1?Array.prototype.slice.call(arguments,1):[];q(this.G[a],function(a){var b;a&&a.length===2&&(b=a[0],a=a[1],b.apply(a,c))})}}; eb.prototype.addEventListener=function(a,b){var c=B(this,a,b);b._cbEventId=c};eb.prototype.removeEventListener=function(a,b){this.G[a]&&this.G[a][b._cbEventId]&&this.G[a][b._cbEventId][0]===b&&fb(this,b._cbEventId)};var C=new eb,gb="a";var F={}; F.D=function(){F.Ka?F.va("pageload"):(F.Bb=[{target:o,event:"scroll"},{target:document.body,event:"keydown"},{target:document.body,event:"mousemove"},{target:o,event:"resize"},{target:document.body,event:"mousedown"}],F.Ca=j,F.aa=j,F.Ja={},F.mb={},q(F.Bb,function(a){var b=a.event;z(a.target,b,function(a){F.va.call(F,b,a)})}),B(C,"f",function(){F.va("focus")}),F.va("pageload"),z(document.body,"click",function(a){(a=ab(a))&&C.Q("c",a)},h),z(document.body,"contextmenu",function(a){(a=ab(a))&&C.Q("r", a)}),F.Ka=h)};F.Gb=function(){var a,b=F.mb.keydown;if(b===g)return m;b=r()-b;return b<=(a||15E3)&&b>=0};F.bb=100;F.va=function(a,b){if(!b)b=window.event;if(b&&a==="keydown"){var c=b.keyCode?b.keyCode:b.which;if(c===32||c>36&&c<41)a="scroll"}F.qc(a);if(F.Ca===j)F.vb(a);else if(!F.aa||ha[F.aa]c)?(M.remove(a),""):b.getItem(a)||""}; M.create=function(a,b,c){var d=M.B();if(d){var e=new Date;e.setTime(r()+c*1E3);try{d.setItem(a,b),d.setItem(a+"_expires",e.getTime())}catch(f){}}};M.remove=function(a){var b=M.B();b&&(b.removeItem(a),b.removeItem(a+"_expires"))};function Bb(a,b){this.ya=a||"";this.N=b||"/";this.Mb=M.B()!==j||L.Jb(this.N);this.Ya=m;Cb(this)}n=Bb.prototype;n.isSupported=function(){return this.Mb}; function Cb(a){if(!L.k("_cb_ls")){var b=M.B()!==j,c=L.k("_SUPERFLY_lockout");c&&q(["","_v_","_p_"],function(b){a.create(b+"_SUPERFLY_lockout",c,600,h)});var d=L.k("_chartbeat3");d&&(a.create("_v__chartbeat3",d,34128E3,h),L.remove("_chartbeat3",a.N));b&&((b=L.k("_chartbeat2"))&&a.create("_chartbeat2",b,34128E3,h),(b=L.k("_chartbeat5"))&&a.create("_chartbeat5",b,60,h));L.create("_cb_ls","1",34128E3,a.N)}} n.create=function(a,b,c,d){a=d?a:this.ya+a;(M.B()?M:L).create(a,b,c,this.N);M.B()&&L.create(a,b,c,this.N)};n.update=function(a,b,c,d,e,f,i){a=d?a:this.ya+a;e=A(e)?e:"::";d=(d=this.k(a,h))?d.split(e):[];if(i&&d.length){var k=i(b),l=Ea(d,function(a){return i(a)===k});l!==-1&&d.splice(l,1)}d.push(b);for(Aa(f)&&d.length>f&&d.splice(0,d.length-f);d.length>1&&d.join(e).length>4E3;)d.shift();this.create(a,d.join(e),c,h)}; n.k=function(a,b){var a=b?a:this.ya+a,c=(M.B()?M:L).k(a);if(!c&&M.B()&&(c=L.k(a))&&L.k("_cb_ls")){this.Ya=h;var d;switch(a){case "_SUPERFLY_lockout":d=600;break;case "_chartbeat4":d=60;break;case "_cb_cp":d=60;break;case "_chartbeat3":d=34128E3;break;default:d=34128E3}M.create(a,c,d)}return c};n.remove=function(a,b){a=b?a:this.ya+a;(M.B()?M:L).remove(a,this.N);M.B()&&L.remove(a,this.N)};function Db(a){var b=j;if(a&&(b=Eb(),b=!b?b:N(b.pathname)+b.search+b.hash))return b;var c=o.location,b=N(c.pathname),a=c.search||"",a=a.replace(/PHPSESSID=[^&]+/,""),d=/&utm_[^=]+=[^&]+/ig;(c=d.exec(c.search))&&(a=a.replace(d,""));d=/\?utm_[^=]+=[^&]+(.*)/i;(c=d.exec(a))&&(a=a.replace(d,c[1]!=""?"?"+c[1]:""));return b+a}function Fb(a){return a&&(a=Eb(),a=!a?a:a.hostname)?a:o.location.hostname}function Eb(){var a=Gb();return!a?a:Sa(a.href)} function Gb(){var a=j;q(document.getElementsByTagName("link"),function(b){if(b.rel=="canonical")return a=b,m});return a}for(var Hb={},Ib=0;Ib<81;Ib++)Hb["0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-._~!$&'()*+,;=:@[]".charCodeAt(Ib)]=h;function Jb(a,b){if(a==="%")return"%25";var c=parseInt(b,16);return Hb[c]?String.fromCharCode(c):"%"+b.toUpperCase()} function N(a){if(!A(a))return a;a=a.replace(/%([0-9A-Fa-f]{2})?/g,Jb);return a=a.replace(/[^0-9A-Za-z\-._~!$&'()*+,;=:@\/\[\]?#%]+/g,encodeURIComponent)};function O(a,b){var c=Q();return u(b)&&!u(c[a])?b:c[a]}function Q(){u(o._cb_shared)||(o._cb_shared={});return o._cb_shared};var R={Db:{IDLE:0,Bc:1,uc:2,Cb:3},J:0};R.D=function(){if(!R.Ka)B(C,gb,R.Sb,R),B(C,"i",R.Vb,R),B(C,"f",R.Ub,R),B(C,"b",R.Tb,R),R.Ka=h};R.Qb=function(){return R.J};R.Sb=function(){R.J===1?R.P(3):R.J===0&&R.P(2)};R.Vb=function(){R.J===3?R.P(1):R.J===2&&R.P(0)};R.Ub=function(){(R.J===0||R.J===2)&&R.P(3)};R.Tb=function(){R.J===3?R.P(2):R.J===1&&R.P(0)};R.P=function(a){R.J=a;C.Q("s",a)};function Kb(a,b){this.Ia=a||g;this.Oa=b||g;this.fa=this.ca=0;this.Yb=s(this.Zb,this);this.xb=this.ba=j}n=Kb.prototype;n.D=function(){this.fa=this.ca=0;this.ba=j;this.xb=B(C,"s",this.kb,this);this.kb(R.Qb())};n.kb=function(a){Ja(this.ba);this.ba=j;if(a===R.Db.Cb)this.ba=Ia(this.Yb,1E3)};n.Zb=function(){if(this.Ia===g||this.Ia())this.ca++,this.fa++,this.Oa&&this.Oa()};n.terminate=function(){Ja(this.ba);this.ba=j;fb(C,this.xb)};n.oa=function(){this.terminate();this.Oa=this.Ia=g};function S(){G.call(this);this.S=[];this.q=new Bb(this.lc,this.a.cookiePath||"/");this.q.remove("_SUPERFLY_nosample");this.F=new Kb;this.Qa=s(this.xa,this);z(o,"unload",this.Qa);this.ta=m;Lb(s(this.D,this))}ba(S,G);function Lb(a){db(function(){tb(a)})}n=S.prototype;n.Va=h;n.Sa=m; n.D=function(){S.M.D.call(this);this.ra=this.U=0;this.ka=r();this.Ua=p(Mb(this));this.Ta=h;this.La=72E5;if(this.Va){var a=+this.a.sessionLength;if(!isNaN(a))this.La=a*6E4}a=O("d");if(!a){var a=[],b=this.q.k("_chartbeat2",h);b.length>0&&(a=b.split("."));a.length>6&&(a=[]);var b=r(),c=this.q.k("_cb",h);c.length>0?a[1]=a[1]||b:c=a[0];a[0]="";var d=b-+(a[1]||0),e=b-+(a[2]||0);Q().n=c&&d>18E5&&e<2592E6?0:1;var d=a[4],f=parseInt(a[5],10)||0;if(!(e=e>18E5))if(Nb(this))e=m;else{var e=U(this),e=decodeURIComponent(e), e=Ob(e)||e,i;i=Pb(this);i=decodeURIComponent(i);i=Ob(i)||i;e=e!==i}!d||e?(d=p(Mb(this)),a[4]=d,f=1,this.q.remove("_cb_svref",h)):f+=1;a[5]=f;f="1";e=a&&+a[2];d=a&&a[3];if(a&&e&&d)if(f=Math.abs((Ba(b)-Ba(e))/864E5)){f=Math.min(f,16)-1;for(e="";f--;)e+=0;f=(d+e+"1").slice(-16)}else f=d;d=f;c||(c=this.a.utoken||p(Mb(this),3),a[1]=b);a[2]=b;a[3]=d;this.a.utoken=this.ma;this.q.create("_cb",c,34128E3,h);this.q.create("_chartbeat2",a.join("."),34128E3,h);a[0]=c;Q().d=a}this.Ec=a.join(".");var k;c=+a[1]; d=+a[2];if((b=a[3])&&c&&d)k=(Math.min((Math.abs((Ba(d)-Ba(c))/864E5)||0)+1,16,b.length)-1).toString(16),k+=("0000"+parseInt(b,2).toString(16)).slice(-4);this.jb=k;this.ac=O("n",1);this.ma=a[0];this.kc=a[4];this.ic=a[5];this.jc=Pb(this);this.q.create("_cb_svref",Pb(this)||"null",1800,h);this.F.D();R.D();F.D();hb||(ib=rb(),jb&&o.document.addEventListener&&o.document.addEventListener(jb,sb,m),qb("focus","onfocusin",ob),qb("blur","onfocusout",pb),ib&&ob(),hb=h);this.ga=0;this.Fb=B(C,gb,this.cc,this); this.Sa=h;if(this.Pa)Ka(this.Pa,0),this.Pa=j};n.Da=function(){if(!this.q.k("_SUPERFLY_lockout"))this.Sa?!cb()&&!this.ta?(this.wa=s(this.Xa,this),z(o,"load",this.wa)):this.Xa():this.Pa=s(this.Da,this)};n.Xa=function(){this.Ra=Qb();F.D();var a=s(this.ha,this);this.lb=Ia(a,15E3);this.ha()}; n.ha=function(){var a=this.F.fa,a=this.a.reading&&+this.a.reading||a>0;if(this.ra0&&b.indexOf("FBIOS")>0;b=Ga;b&&!a?this.ra++:(a?this.U=0:Rb(this),this.ra=0,this.S.push(0),this.S.length>18&&this.S.shift(),this.Va&&r()-this.ka>=this.La?this.terminate():this.Z())}}; n.qb=function(){this.S.push(1);var a=0;q(this.S,function(b){a+=b});a<3?(this.Ta=h,Rb(this)):(this.terminate(),this.q.create("_SUPERFLY_lockout","1",600))};n.xa=function(){};n.cc=function(){var a=Sb(this);this.ga=Math.max(this.ga,a)};function Sb(a){return Math.floor(Wa("Y","Top",!!a.a.scrollElement))}function Rb(a){var b=a.U,b=b?Math.min(b*2,16):1;a.U=b}n.pa=function(){this.xa();this.terminate()};n.Aa=function(){this.ta=h;this.Sa=m;this.D();this.Da()}; function Nb(a){if(a.a[wb])return h;if(Tb(a))return m;a=document.referrer.indexOf("://"+o.location.hostname+"/");return a!=-1&&a<9}function Tb(a){var b=a.a.referrerOverrideQueryParam,c="";q(window.location.search.substr(1).split("&"),function(a){a=a.split("=");if(a.length==2&&a[0]==b&&a[1])return c=decodeURIComponent(a[1]).replace(/\+/g," "),m});c&&c.indexOf("::")==-1&&(c="external::"+c);return c} function U(a){a=a.a[wb]||Tb(a);if(!a&&(a=document.referrer||"")&&!/^(android-)?app:/.test(a)){var b=Sa(a);if(b.protocol==="http:"||b.protocol==="https:")b.pathname=N(b.pathname),a=Ta(b)}return encodeURIComponent(a)}function Ub(a){a=a.a[J].slice(0,100);return encodeURIComponent(a)}function Mb(a){a=[U(a),Ya("Width"),Ya("Height")];return ka(a)}function Vb(a){var b=[],c=a.q.k("_chartbeat4");c&&(q(c.split("::"),function(a){b.push(encodeURIComponent(a))}),a.q.remove("_chartbeat4"));return b} function Pb(a){a=a.q.k("_cb_svref",h)||U(a)||"null";a==="null"&&(a="");return a=a.substr(0,128).replace(/%.?$/,"")}function Ob(a){a=a.match(/^https?:\/\/([^\/]*)/);return!a?j:a[1]}function Qb(){var a=o.performance&&o.performance.timing;if(!a||a.navigationStart==0)return-1;var b=a.navigationStart,a=a.loadEventStart;return Aa(b)&&b?Aa(a)&&a>b?a-b:r()-b:-1}n.terminate=function(){this.F.terminate();fb(C,this.Fb);this.wa!==g&&za("load",this.wa);Ja(this.lb);Q().d=g;Q().n=g}; n.oa=function(){this.terminate();za("unload",this.Qa);this.Qa=this.wa=this.q=this.S=this.a=j;this.F.oa();this.F=j;S.M.oa.call(this)};function Wb(a){for(var b=O("m")||[];b.length;)a(b.shift());a={push:a};Q().m=a};function Xb(a,b,c){var d=a.offsetLeft,e=a.offsetTop,f=Yb(a);d+=f.x;e+=f.y;for(var i=m,k=c?0:Math.floor(Wa("X","Left",g)),l=c?0:Math.floor(Wa("Y","Top",g)),f=a.offsetParent;a&&a!==b&&a!==document.body;){if(a===f)f=Yb(a),d+=a.offsetLeft+f.x,e+=a.offsetTop+f.y,f=a.offsetParent;c||(d-=a.scrollLeft,e-=a.scrollTop);if(Zb(a,["position"]).position==="fixed"){i=h;break}a=a.parentElement}c||(d-=b?b.scrollLeft:k,e-=b?b.scrollTop:l);i&&(d+=k,e+=l);return{x:d,y:e}} function Zb(a,b){var c={},d,e;o.getComputedStyle?d=o.getComputedStyle(a,j):a.currentStyle?e="currentStyle":a.style&&(e="style");q(b,function(b){c[b]=d?d[b]||d.getPropertyValue(b):a[e][b]});return c}var $b=/matrix(3d)?\((.*)\)/;function Yb(a){var b={x:0,y:0},a=Zb(a,["transform"]).transform;if(!A(a))return b;var c=a.match($b);if(!c)return b;var a=c[2].split(", "),d;u(c[1])?(c=12,d=13):(c=4,d=5);b.x=parseInt(a[c],10);b.y=parseInt(a[d],10);return b};function ac(){var a=o.location.href,a=a.replace(/-{2,}/g,"-"),a=Sa(a);a.pathname=N(a.pathname);return a} function bc(a){var b=L.k("_chartbeat6");if(!b)return j;var b=b.split("::"),c,d;if(b.length===1)c=b[0].split(","),d=0;else{var e,f=ac(),i=Ta(f);q(b,function(a,b){var f=a.split(","),l=Fa(i,decodeURIComponent(f[0]));if(l===0)return c=f,d=b,m;if(e===g||l=15&&(this.Z(),this.pb+=1),a>=45&&this.terminate()):this.Z()}; function ic(a){var b=a.a;return Ca()+"//"+b.mabServer+"/ping/mab?h="+encodeURIComponent(b[I])+"&p="+encodeURIComponent(b[H])+"&d="+encodeURIComponent(a.ea)+"&u="+a.ma+"&c="+Math.round((r()-a.ka)/600)/100}n.xa=function(){};n.mc=function(a){a=gc(a);this.da?jc(this,a):this.Ba=a}; function jc(a,b){var c=ic(a),d=b.status,e=b.data;if(d=="s"&&e!==j){var f=s(a.za,a);Da(e.ub)&&q(e.ub,function(a,b){f(c+"&x="+b+"&v="+a.eb+"&ml="+e.X+"&sl="+a.$+"&e=-1")});Object.prototype.toString.call(e.nb)==="[object Array]"&&q(e.nb,function(a){f(c+"&me=3&ml="+e.X+"&x="+a)})}else d=="e"&&a.za(c+"&me="+b.code)} n.Xb=function(a,b){for(var c=0,d=arguments.length;c0?this.Ra:"";if(this.jb&&!this.a.noCookies&&this.q.isSupported())b.f= this.jb;b[""]=Ab(this.a);b.t=this.Ua;b.V=120;b.tz=(new Date).getTimezoneOffset();b.sn=this.ja;b.sv=this.kc;b.sr=this.jc;b.sd=this.ic;c=this.F.fa;b.h=encodeURIComponent(this.a[I]);b.p=encodeURIComponent(this.a[H]);b.u=this.ma;b.d=encodeURIComponent(this.ea);b.j=Math.round((this.U+2)*15E3/1E3);b.R=0;b.W=0;b.I=0;F.Gb()?b.W=1:this.a.reading&&+this.a.reading||c>0||b.c<0.09?b.R=1:b.I=1;b.e=c;c=Nb(this);if(this.Ta){this.Ta=m;if(c)this.T=xc(this);b.i=Ub(this);var d=this.a.hudTrackable;d!==g&&(b.L=d?"1":"0"); this.a.alias&&(b.PA=encodeURIComponent(this.a.alias))}if(c){if(this.T){if(b.v=encodeURIComponent(this.T.path),b.K=yc(this.T),this.T.Na>1)b.l1=this.T.Na}else b.v=U(this);this.ta&&(b.vp=1)}else b.r=U(this);c=Ma(b.v);Q().v=c;c=Ma(b.r);Q().r=c;b.A=this.Fa?this.Fa:"";b._c=Oa("utm_campaign",this.a.campaignTag);b._m=Oa("utm_medium",this.a.mediumTag);b._x=Oa("utm_source",this.a.sourceTag);b._y=Oa("utm_content",this.a.contentTag);b._z=Oa("utm_term",this.a.termTag);b.im=this.$b.Kb;this.a.idSync?(c=[],da(new ca, this.a.idSync,c),c=encodeURIComponent(c.join(""))):c="";b._s=c;b.z=Vb(this);b.C=this.a.mobileApp?1:"";b.KK=a?yc(a):"";a=this.q;c=a.Ya;a.Ya=m;b.l=c?1:"";this.F.fa=0;this.za(Ca()+"//"+this.a.pingServer+"/ping?"+Qa(b))}; n.Wb=function(a){var b=this.a,c=b.playerdomain||this.ea;if(ma(a.origin)===ma(c))if(c=a.data,A(c)&&c.indexOf("cbqpush::")===0)a=c.split("::"),a.length==3&&(a=a.slice(1),a[0].indexOf("_")===0&&this.rb(a));else if(c=="cbdata?"){var c="&u="+O("u"),d="&t="+O("t"),e="&v="+O("v"),f="&r="+O("r"),b="domain="+encodeURIComponent(b[I])+"&uid="+encodeURIComponent(b.uid)+"&path="+encodeURIComponent(b[H])+"&title="+Ub(this)+"&referrer="+U(this)+"&internal="+(Nb(this)?"1":"0")+"&subdomain="+encodeURIComponent(this.ea)+ c+d+e+f+"&utoken="+this.ma;a.source.postMessage(b,"*")}};n.rb=function(a){var b=a[0],a=a[1];if(b==="_demo"&&this.a._demo)this.a._demo=this.a._demo+"%2C"+a;else if(a!==this.a[b]&&(this.a[b]=a,this.U=0,this.ja>0&&!this.qa)){var c=this.ja,d=this;this.qa=Ka(function(){d.qa=j;d.ja===c&&d.Z()},1E3)}};function zc(a){a=a.replace(/-{2,}/g,"-");a=Sa(a);a.pathname=N(a.pathname);return a}n.dc=function(a){Ac(this,a,"c")};n.ec=function(a){Ac(this,a,"r")}; function Ac(a,b,c){if(a.Va&&r()-a.ka>=a.La)a.terminate();else{var d=b.href||"",d=zc(d);if(d.protocol.indexOf("http")===0){var e=d.hostname!==o.location.hostname,d=Ta(d),f=Za(b,function(a){return a.id}),i=hc(b,f),k="";a.a.moduleAttribute&&(k=(k=Va(b,a.a.moduleAttribute))?k.getAttribute(a.a.moduleAttribute):"",k=k.replace(/::/g,"-").substr(0,40));f?(i&&(i="/"+i),i="*[@id='"+f.id+"']"+i,f=hc(b)):f=i;i=p(i);f=p(f);b=Xb(b,g,h);c={left:b.x,top:b.y,path:a.a[H],href:d,ab:i,Ea:f,$a:"",Wa:c,Na:0,Rb:a.a[I], Ma:k};a.Z(c);e||a.q.update("_chartbeat5",Bc(c),60,m,g,3,function(a){a=a.split(",");return a[2]+","+a[3]})}}}function yc(a){return[a.left,a.top,a.ab,encodeURIComponent(a.$a),a.Wa,encodeURIComponent(a.href),a.Ea,a.Ma].join("::")}function Bc(a){var b=encodeURIComponent(a.$a),b=b.replace(/-/g,"%2D");b.length>512&&(b="");return[a.left,a.top,encodeURIComponent(a.path),encodeURIComponent(a.href),a.ab,b,a.Wa,a.Ea,encodeURIComponent(a.Rb),a.Ma].join(",")} function xc(a){var b=a.q.k("_chartbeat5");if(!b)return j;var c=b.split("::"),b=c.length,d,e=j,f,i=zc(o.location.href),k=Ta(i);q(c,function(a,b){var c=a.split(","),i=decodeURIComponent(c[3]);if(i){i=ya(k,i);if(i===0)return d=c,e=b,m;else if(i===j)return h;if(f===g||i7?d[7]:"",Wa:d.length>6?d[6]:"c",Na:b,Ma:d[9]?d[9]:""}}n.terminate=function(){fb(C,this.Hb);fb(C,this.Ib);La(this.qa);this.qa=j;X.M.terminate.call(this)};function Cc(a,b){return function(c,d){if(!mb){a();var e=o._sf_async_config,f="",i=e[H],i=ma(i);/^\//.test(i)&&(f=x(o.location.hostname));e[wb]=Ca()+"//"+f+i;if(A(c))e[H]=N(c),d&&(e[J]=d);else if(Da(c)){var k=["authors","sections",J,H,wb];q(c,function(a,b){if(Ea(k,function(a){return a===b})!==-1||b.indexOf("_")===0)e[b]=b===H?N(a):a})}b()}}};if(!L.k("cb_optout")&&!o.pSUPERFLY){var Dc=new X,Z={};o.pSUPERFLY=Z;var Qc=o.pSUPERFLY_mab,$=o.pSUPERFLY_pub,Rc=[];Qc&&Rc.push(Qc);if($)Rc.push($),$.addEngagedAdFilter&&(Z.addEngagedAdFilter=$.addEngagedAdFilter),$.refreshAd&&(Z.refreshAd=$.refreshAd),$.registerGptSlot&&(Z.registerGptSlot=$.registerGptSlot),xb("_cba",function(a){a()});Z.virtualPage=Cc(function(){Dc.pa();q(Rc,function(a){a.evps()})},function(){Dc.Aa();q(Rc,function(a){a.svps()})});Z.activity=s(Dc.Eb,Dc);Dc.Da();sc.exec(document.referrer)&& uc();var Sc=M.B(h);if(!Sc?0:Sc.getItem("_cb_ip")){var Tc=o.location;(!/^(.+[.])?chartbeat\.com$/.test(Tc.hostname)?0:/^\/publishing\/(overlay|hud|mab)\//.test(Tc.pathname))||db(tc)}else z(o,"message",vc)};})();